Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris 49 posts 67 karma points
    Mar 17, 2011 @ 16:03
    Chris
    0

    Cannot have ']]>' inside an XML CDATA block.

    What would cause this? Using 4.5.x......

  • Kim Andersen 1447 posts 2197 karma points MVP
    Mar 17, 2011 @ 16:07
    Kim Andersen
    0

    Are you trying to insert some special code (eg. something with ]]> in it) into the richtext editor? If that's the case, the error occours because the html from the richtext editor are stores as XML inside CDATA

    Could you maybe provde us with a little more details?

    /Kim A

  • Chris 49 posts 67 karma points
    Mar 17, 2011 @ 16:14
    Chris
    0

    Hi, Kim:

     

    Thank you so much for replying so quickly.  What I have done (I know it is not the most efficient way) is use AJAX Controls for a Content Panel Extender; about 14 fields.  I am then using richtext editor fields to sub data into each title and content fields so it can easily be edited (still new to umbraco and xlst).  I was able to enter a few but now getting the error. 

     

    I am only entering html code into the richtext editor fields (entering html code into the html section - not rich text section) and I am not using "]]>" or anything like that.

     

     

  • Chris 49 posts 67 karma points
    Mar 17, 2011 @ 16:20
    Chris
    0

    Ahhh. Kim you saved me.  I had entered javascript in the rich text editor 

    <span style="text-decoration:underline;"> <script type="text/javascript">   document.write(userName[0])</script></span>

    to hide an email address and that is what threw it. 

     

    Best solution is to use this field without the richtext editor?

  • Kim Andersen 1447 posts 2197 karma points MVP
    Mar 17, 2011 @ 16:31
    Kim Andersen
    0

    If you want to insert some javascript from the Umbraco backoffice I'd suggest that you put it in a textbox multiple. In this data type you can insert all kinds of code without breaking anything. And it's rendered fine on the frontend.

    /Kim A

  • Chris 49 posts 67 karma points
    Mar 17, 2011 @ 17:15
    Chris
    0

    Thanks, Kim.  Really appreciate the help.

     

    Chris.

  • Kim Andersen 1447 posts 2197 karma points MVP
    Mar 18, 2011 @ 08:23
    Kim Andersen
    0

    You are very Welcome Chris. Glad the suggestion works for you :)

    /Kim A

  • Maurice Melchers 4 posts 24 karma points
    May 29, 2012 @ 00:24
    Maurice Melchers
    0

    Hate casting lvl 5 resurection on old treads. But I'm having this problem with a textbox multiple datatype.

    I'm trying to add tracking code which contains this code in this textbox and it gives me this error. Using umbraco v 4.7.1 (Assembly version: 1.0.4281.20201)

     

    M

  • Maurice Melchers 4 posts 24 karma points
    May 29, 2012 @ 01:03
    Maurice Melchers
    0

    to elaborate, here's an example of the conversion code: http://support.google.com/adwords/bin/answer.py?hl=en&answer=1722021

    I just want people to copy paste it into any textbox, and this giving me errors. 

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies